package gestionTransportObjetsGenerated;

/**
 * Interface definition : AppliTransporteur
 * 
 * @author OpenORB Compiler
 */
public abstract class AppliTransporteurPOA extends org.omg.PortableServer.Servant
        implements AppliTransporteurOperations, org.omg.CORBA.portable.InvokeHandler
{
    public AppliTransporteur _this()
    {
        return AppliTransporteurHelper.narrow(_this_object());
    }

    public AppliTransporteur _this(org.omg.CORBA.ORB orb)
    {
        return AppliTransporteurHelper.narrow(_this_object(orb));
    }

    private static String [] _ids_list =
    {
        "IDL:gestionTransportObjetsGenerated/AppliTransporteur:1.0"
    };

    public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte [] objectId)
    {
        return _ids_list;
    }

    public final org.omg.CORBA.portable.OutputStream _invoke(final String opName,
            final org.omg.CORBA.portable.InputStream _is,
            final org.omg.CORBA.portable.ResponseHandler handler)
    {

        if (opName.equals("notifierDepot")) {
                return _invoke_notifierDepot(_is, handler);
        } else if (opName.equals("notifierTransportAssigne")) {
                return _invoke_notifierTransportAssigne(_is, handler);
        } else {
            throw new org.omg.CORBA.BAD_OPERATION(opName);
        }
    }

    // helper methods
    private org.omg.CORBA.portable.OutputStream _invoke_notifierDepot(
            final org.omg.CORBA.portable.InputStream _is,
            final org.omg.CORBA.portable.ResponseHandler handler) {
        org.omg.CORBA.portable.OutputStream _output;
        gestionTransportObjetsGenerated.TransportColis arg0_in = gestionTransportObjetsGenerated.TransportColisHelper.read(_is);

        notifierDepot(arg0_in);

        _output = handler.createReply();

        return _output;
    }

    private org.omg.CORBA.portable.OutputStream _invoke_notifierTransportAssigne(
            final org.omg.CORBA.portable.InputStream _is,
            final org.omg.CORBA.portable.ResponseHandler handler) {
        org.omg.CORBA.portable.OutputStream _output;
        gestionTransportObjetsGenerated.TransportColis arg0_in = gestionTransportObjetsGenerated.TransportColisHelper.read(_is);

        notifierTransportAssigne(arg0_in);

        _output = handler.createReply();

        return _output;
    }

}
